{include file='common/home'}


<div class="row-fluid sortable">


    <div class="box span12">
        <div class="box-header" data-original-title>
            <h2>
                <i class="halflings-icon white edit"></i>
                <span class="break"></span>Form Elements</h2>
            <div class="box-icon">
                <a href="#" class="btn-setting">
                    <i class="halflings-icon white wrench"></i>
                </a>
                <a href="#" class="btn-minimize">
                    <i class="halflings-icon white chevron-up"></i>
                </a>
                <a href="#" class="btn-close">
                    <i class="halflings-icon white remove"></i>
                </a>
            </div>
        </div>
        <div class="box-content">
            <form class="form-horizontal">
                <fieldset>
                    <div class="control-group">
                        <label class="control-label" for="typeahead">android_link </label>
                        <div class="controls">
                            <input type="text" class="span6 typeahead android" id="typeahead" data-provide="typeahead" value="{$link_info.link_href_andorer}" data-items="4" data-source='["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Dakota","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"]'>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="typeahead">ios_link </label>
                        <div class="controls">
                            <input type="text" class="span6 typeahead ios" id="typeahead" data-provide="typeahead" value="{$link_info.link_href_ios}" data-items="4" data-source='["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Dakota","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"]'>

                        </div>
                    </div>


                    <div class="form-actions">
                        <button type="button" onclick="save()" class="btn btn-primary">保存</button>
                        <button type="reset" class="btn">取消</button>
                    </div>
                </fieldset>
            </form>

        </div>
    </div>
    <!--/span-->

</div>
<!--/row-->
<script>
    var id = parseInt('{$link_info.link_id}');
    function save(){
        var android_link = $('.android').val();
        var ios_link = $('.ios').val();
        console.log(ios_link);
        console.log(android_link);
        console.log(id);
        
        
        $.post('/index/Admin/updata',{ios_link:ios_link,android_link:android_link,id:id},function(data){
            if (data.code == 0) {
				alert(data.msg);
			} else {
				alert(data.msg);
			}
        })
    }
</script>


{include file='common/bottom'}